﻿@model PagedList.IPagedList<TestOnlineProject.Models.Entities.DiscussionModel>
@using PagedList.Mvc;
@{
    ViewBag.Title = "Discussion";
}
<div id="list">
    @foreach (var discussionModel in @Model)
    {
        <table class="table table-bordered">
            <tr style="background-color: #F5F5F5">
                <td>
                    <span>
                        <b>@Html.ActionLink(@discussionModel.Discussion.Title, "Details", "Discussion", new { discussionId = @discussionModel.Discussion.DiscussionId, thread = @discussionModel.Discussion.DiscussionId }, new { style = "color: #127BC0; font-size: 14px" })</b>
                    </span>
                    <br />
                    <span style="padding-right: 20px; font-size: 12px">
                        <i class="icon-calendar"></i>@discussionModel.LastPost
                    </span>
                </td>
            </tr>
        </table>
    }
    @Html.PagedListPager(Model, page => Url.Action("Discussion", new { page }))
</div>